package com.firewolf.oa.service;

import java.util.List;

import com.firewolf.oa.base.BaseService;
import com.firewolf.oa.entities.Department;

public interface DepartmentService extends BaseService<Department>{
	/**
	 * 查找顶级部门
	 * @return
	 */
	List<Department> findTopDepartments();
	
	/**
	 * 根据父ID查找子部门,如果parentId为空，就返回顶级部门
	 * @param parentId
	 * @return
	 */
	List<Department> findDeptsByParentId(Long parentId);

}
